﻿using IOA.MES.DataAccess.Enum;
using System.Collections.Generic;

namespace IOA.MES.ClientApi.Models.Response.Common
{
    public class QueryMachineTypesResponse
    {
        /// <summary>
        /// 设备类型列表
        /// </summary>
        public List<KeyValuePair<MachineType, string>> MachineTypes { get; set; } = new List<KeyValuePair<MachineType, string>>();

        /// <summary>
        /// 车间列表
        /// </summary>
        public List<Workshop> Workshops { get; set; } = new List<Workshop>();

        /// <summary>
        /// 设备列表
        /// </summary>
        public List<SimpleMachine> Machines { get; set; } = new List<SimpleMachine>();
    }

    public class SimpleMachine
    {
        /// <summary>
        /// 设备类型
        /// </summary>
        public MachineType MachineType { get; set; }

        /// <summary>
        /// 设备ID
        /// </summary>
        public int MachineId { get; set; }

        /// <summary>
        /// 设备名称
        /// </summary>
        public string MachineName { get; set; }

        ///<Summary>
        /// 文件类型（0:mdb，1:csv）
        ///</Summary>
        public int FileType { get; set; }

        /// <summary>
        /// 车间代码
        public string WorkshopCode { get; set; }

        /// <summary>
        /// 车间名称
        /// </summary>
        public string WorkshopName { get; set; }
    }
}
